<%-- 
    Document   : login
    Created on : Dec 26, 2013, 8:53:46 PM
    Author     : rjakubco
--%>

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>



<f:message var="nadpis" key="login"/>

<s:layout-render name="/mainLayout.jsp" nadpis="${nadpis}">
    <s:layout-component name="body">
    
    <form name="loginform" method="post">
        <fieldset><legend><f:message key="login"/></legend>        
        <c:if test="${shiroLoginFailure != null}">
                <div class="warning"><f:message key="loginPage.wrongCredentials"/></div>
            </c:if> 
                <s:messages/>
            <table>
                    <tr>
                        <td><s:label for="p5" name="gathererDto.username"/></td>
                        <td><input type="text" name="username" maxlength="30"></td>
                    </tr>
                    <tr>
                        <td><s:label for="p6" name="gathererDto.password"/></td>
                        <td><input type="password" name="password" maxlength="30"></td>
                    </tr>
                   
                    <tr>
                        <td colspan="2" align="right"><input type="submit" name="submit" value="Login"></td>
                    </tr>
                </table>
                     </fieldset>
            </form>           
   
    </s:layout-component>
</s:layout-render>